<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">hi app</div>
    <script src="./vue.js"></script>
    <script>
      const title = "hello jack";
      const vm = new Vue({
        // 配置项 数据
        data: {
          title: "hello lili",
        },
        el: "#app",
        template: `<h1>hello ${title} , {{title}}，{{add(1,2)}}</h1>`,
        methods: {
          add(a, b) {
            return a + b;
          },
        },
      });
    </script>
  </body>
</html>
